function _redirectParam()
{
	this.msg;
	this.action;
	this.page;
	this.cod;
	this.confirm;
	this.url;
	this.idIndex;
	
	this.setCod = function(cod)
	{
		this.cod = cod;
	}
	
	this.setMsg = function(msg)
	{
		this.msg = msg; 
	}
	
	this.setPage = function(page)
	{
		this.page = page; 
	}
	
	this.setAction = function(action)
	{
		this.action = action;
	}
	
	this.setConfirm = function(msg)
	{
		this.confirm = msg;
	}
	
	this.setIdIndex = function(idIndex)
	{
		this.idIndex = idIndex;
	}
	
	this.setUrl = function(url)
	{
		this.url = url;
	}
	
	this.setCod = function(cod)
	{
		this.cod = cod;
	}
	
	this.redirect = function()
	{
		window.open(this.url, "_self");
	} 
	
	this.check = function()
	{
		var i   = 0;		
		var cod = "";
		
		var grupo = document.getElementsByTagName('input');
		
		while (i < grupo.length)
		{
			var type    = grupo[i].type;
			var checked = grupo[i].checked;
			var id      = grupo[i].id.substr(0, 2);
			
			if (type == "checkbox" && checked == true && id == "c_") 
			{
				cod = cod + "," + grupo[i].value;
			}
			
			i++;
		}
		
		this.setCod(trim(cod.substr(1, cod.length)));
	}
	
	this.run = function()
	{
		this.check();
		
		if(this.cod)
		{
			this.setUrl(base + "/" + this.page + "/" + this.action + "/cod/" + this.cod + "/");
			
			if(this.idIndex)
			{
				this.url = this.url + "&idIndex=" + this.idIndex;
			}
			
			if(this.confirm)
			{
				if(confirm(this.confirm))
				{
					this.redirect();
				}
				
				return;
			}
			
			this.redirect();
		}
		else
		{
			if(this.msg)
			{
				alert(this.msg);
			}
		}
	}	
}